.class public final Lkairo/android/c/d;
.super Ljava/lang/Object;


# static fields
.field protected static a:Ljava/net/HttpURLConnection;

.field protected static b:Ljava/lang/String;

.field protected static c:I

.field protected static d:Ljava/lang/String;


# direct methods
.method public static a()I
    .locals 1

    sget v0, Lkairo/android/c/d;->c:I

    return v0
.end method

.method public static a(Ljava/lang/String;[BZ)[B
    .locals 2

    invoke-static {p0, p1, p2}, Lkairo/android/c/d;->b(Ljava/lang/String;[BZ)[[B

    move-result-object v0

    const/4 v1, 0x0

    aget-object v0, v0, v1

    return-object v0
.end method

.method public static b()Ljava/lang/String;
    .locals 1

    sget-object v0, Lkairo/android/c/d;->d:Ljava/lang/String;

    return-object v0
.end method

.method private static b(Ljava/lang/String;[BZ)[[B
    .locals 10

    const/16 v3, -0x63

    const/4 v5, -0x1

    const/4 v2, 0x0

    const/4 v4, 0x0

    const/4 v8, 0x1

    const-string v0, "get_score.php"

    invoke-virtual {p0, v0}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v0

    if-eq v0, v5, :cond_0

    new-array v1, v8, [[B

    const-string v0, "OK\n0,0"

    invoke-virtual {v0}, Ljava/lang/String;->getBytes()[B

    move-result-object v0

    aput-object v0, v1, v4

    :goto_0
    return-object v1

    :cond_0
    sput v4, Lkairo/android/c/d;->c:I

    sput-object v2, Lkairo/android/c/d;->d:Ljava/lang/String;

    sput-object v2, Lkairo/android/c/d;->b:Ljava/lang/String;

    const-string v0, "regist.php"

    invoke-virtual {p0, v0}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v0

    if-eq v0, v5, :cond_6

    new-instance v0, Lkairo/android/d/a;

    invoke-static {}, Lkairo/android/ui/IApplication;->a()Lkairo/android/ui/IApplication;

    move-result-object v1

    invoke-direct {v0, v1}, Lkairo/android/d/a;-><init>(Landroid/app/Activity;)V

    invoke-virtual {v0}, Lkairo/android/d/a;->a()V

    :goto_1
    invoke-virtual {v0}, Lkairo/android/d/a;->b()I

    move-result v1

    if-eq v1, v8, :cond_1

    const-wide/16 v1, 0x32

    :try_start_0
    invoke-static {v1, v2}, Ljava/lang/Thread;->sleep(J)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_1

    :catch_0
    move-exception v1

    goto :goto_1

    :cond_1
    invoke-virtual {v0}, Lkairo/android/d/a;->e()I

    move-result v1

    invoke-virtual {v0}, Lkairo/android/d/a;->c()I

    move-result v2

    if-ne v2, v8, :cond_2

    new-array v1, v8, [[B

    const-string v0, "1\n100"

    invoke-virtual {v0}, Ljava/lang/String;->getBytes()[B

    move-result-object v0

    aput-object v0, v1, v4

    goto :goto_0

    :cond_2
    sparse-switch v1, :sswitch_data_0

    sput v5, Lkairo/android/c/d;->c:I

    const-string v1, "\u8a8d\u8a3c\u306b\u5931\u8d25\u3057\u307e\u3057\u305f\u3002"

    invoke-static {v1}, Lkairo/android/i/h;->b(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    sput-object v1, Lkairo/android/c/d;->d:Ljava/lang/String;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    sget-object v2, Lkairo/android/c/d;->d:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, "\n"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    sput-object v1, Lkairo/android/c/d;->d:Ljava/lang/String;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    sget-object v2, Lkairo/android/c/d;->d:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, "\u8cfc\u5165\u6642\u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u8a2d\u5b9a\u3057\u3001\u96fb\u6ce2\u72b6\u614b\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002"

    invoke-static {v2}, Lkairo/android/i/h;->b(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    sput-object v1, Lkairo/android/c/d;->d:Ljava/lang/String;

    invoke-virtual {v0}, Lkairo/android/d/a;->d()Ljava/lang/String;

    move-result-object v0

    if-eqz v0, :cond_3

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    sget-object v2, Lkairo/android/c/d;->d:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, "\n"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    sput-object v0, Lkairo/android/c/d;->d:Ljava/lang/String;

    :cond_3
    :goto_2
    sget-object v0, Lkairo/android/c/d;->d:Ljava/lang/String;

    if-eqz v0, :cond_4

    invoke-static {}, Lkairo/android/i/h;->a()Z

    move-result v0

    if-eqz v0, :cond_5

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    sget-object v1, Lkairo/android/c/d;->d:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, "\thttp://kairopark.jp/android/faq.html#licence"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    sput-object v0, Lkairo/android/c/d;->d:Ljava/lang/String;

    :cond_4
    :goto_3
    new-instance v0, Ljava/io/IOException;

    invoke-direct {v0}, Ljava/io/IOException;-><init>()V

    throw v0

    :sswitch_0
    const/16 v0, -0x62

    sput v0, Lkairo/android/c/d;->c:I

    const-string v0, "\u30b5\u30fc\u30d0\u30fc\u9519\u8bef\u304c\u767a\u751f\u3057\u307e\u3057\u305f\u3002"

    invoke-static {v0}, Lkairo/android/i/h;->b(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    sput-object v0, Lkairo/android/c/d;->d:Ljava/lang/String;

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    sget-object v1, Lkairo/android/c/d;->d:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, "\n"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    sput-object v0, Lkairo/android/c/d;->d:Ljava/lang/String;

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    sget-object v1, Lkairo/android/c/d;->d:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, "\u8a8d\u8a3c\u306b\u5931\u8d25\u3057\u307e\u3057\u305f\u3002\u8cfc\u5165\u6642\u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u8a2d\u5b9a\u3057\u3001\u96fb\u6ce2\u72b6\u614b\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002"

    invoke-static {v1}, Lkairo/android/i/h;->b(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    sput-object v0, Lkairo/android/c/d;->d:Ljava/lang/String;

    goto :goto_2

    :sswitch_1
    sput v3, Lkairo/android/c/d;->c:I

    const-string v0, "\u901a\u4fe1\u3092\u8bb8\u53ef\u3057\u96fb\u6ce2\u72b6\u614b\u3092\u78ba\u8a8d\u3057\u3066\u4e0b\u3055\u3044\u3002"

    invoke-static {v0}, Lkairo/android/i/h;->b(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    sput-object v0, Lkairo/android/c/d;->d:Ljava/lang/String;

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    sget-object v1, Lkairo/android/c/d;->d:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, "\n"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    sput-object v0, Lkairo/android/c/d;->d:Ljava/lang/String;

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    sget-object v1, Lkairo/android/c/d;->d:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, "\u8a8d\u8a3c\u306b\u5931\u8d25\u3057\u307e\u3057\u305f\u3002\u8cfc\u5165\u6642\u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u8a2d\u5b9a\u3057\u3001\u96fb\u6ce2\u72b6\u614b\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002"

    invoke-static {v1}, Lkairo/android/i/h;->b(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    sput-object v0, Lkairo/android/c/d;->d:Ljava/lang/String;

    goto/16 :goto_2

    :cond_5
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    sget-object v1, Lkairo/android/c/d;->d:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, "\thttp://kairopark.jp/android/en/faq.html#licence"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    sput-object v0, Lkairo/android/c/d;->d:Ljava/lang/String;

    goto/16 :goto_3

    :cond_6
    :goto_4
    const-string v0, "NULLGWDOCOMO"

    invoke-virtual {p0, v0}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v0

    if-eq v0, v5, :cond_7

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {p0, v4, v0}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v3, "android_id"

    invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    add-int/lit8 v0, v0, 0xc

    invoke-virtual {p0, v0}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p0

    goto :goto_4

    :cond_7
    :try_start_1
    new-instance v0, Ljava/net/URL;

    invoke-direct {v0, p0}, Ljava/net/URL;-><init>(Ljava/lang/String;)V

    if-nez p1, :cond_c

    invoke-virtual {v0}, Ljava/net/URL;->openConnection()Ljava/net/URLConnection;

    move-result-object v0

    check-cast v0, Ljava/net/HttpURLConnection;

    sput-object v0, Lkairo/android/c/d;->a:Ljava/net/HttpURLConnection;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Ljava/net/HttpURLConnection;->setDoInput(Z)V

    sget-object v0, Lkairo/android/c/d;->a:Ljava/net/HttpURLConnection;

    const-string v1, "GET"

    invoke-virtual {v0, v1}, Ljava/net/HttpURLConnection;->setRequestMethod(Ljava/lang/String;)V

    :goto_5
    sget-object v0, Lkairo/android/c/d;->a:Ljava/net/HttpURLConnection;

    if-nez v0, :cond_d

    new-instance v0, Ljava/io/IOException;

    invoke-direct {v0}, Ljava/io/IOException;-><init>()V

    throw v0
    :try_end_1
    .catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_3
    .catchall {:try_start_1 .. :try_end_1} :catchall_2

    :catch_1
    move-exception v0

    move-object v1, v2

    move-object v3, v2

    :goto_6
    :try_start_2
    sput-object p0, Lkairo/android/c/d;->b:Ljava/lang/String;

    sget v4, Lkairo/android/c/d;->c:I

    if-nez v4, :cond_8

    const/16 v4, -0x62

    sput v4, Lkairo/android/c/d;->c:I

    :cond_8
    throw v0
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    :catchall_0
    move-exception v0

    move-object v9, v1

    move-object v1, v3

    move-object v3, v9

    :goto_7
    if-eqz v1, :cond_9

    :try_start_3
    invoke-virtual {v1}, Ljava/io/DataOutputStream;->close()V
    :try_end_3
    .catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_6

    :cond_9
    :goto_8
    if-eqz v3, :cond_a

    :try_start_4
    invoke-virtual {v3}, Ljava/io/DataInputStream;->close()V
    :try_end_4
    .catch Ljava/lang/Exception; {:try_start_4 .. :try_end_4} :catch_7

    :cond_a
    :goto_9
    sget-object v1, Lkairo/android/c/d;->a:Ljava/net/HttpURLConnection;

    if-eqz v1, :cond_b

    :try_start_5
    sget-object v1, Lkairo/android/c/d;->a:Ljava/net/HttpURLConnection;

    invoke-virtual {v1}, Ljava/net/HttpURLConnection;->disconnect()V
    :try_end_5
    .catch Ljava/lang/Exception; {:try_start_5 .. :try_end_5} :catch_8

    :cond_b
    :goto_a
    sput-object v2, Lkairo/android/c/d;->a:Ljava/net/HttpURLConnection;

    throw v0

    :cond_c
    :try_start_6
    invoke-virtual {v0}, Ljava/net/URL;->openConnection()Ljava/net/URLConnection;

    move-result-object v0

    check-cast v0, Ljava/net/HttpURLConnection;

    sput-object v0, Lkairo/android/c/d;->a:Ljava/net/HttpURLConnection;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Ljava/net/HttpURLConnection;->setDoOutput(Z)V

    sget-object v0, Lkairo/android/c/d;->a:Ljava/net/HttpURLConnection;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Ljava/net/HttpURLConnection;->setDoInput(Z)V

    sget-object v0, Lkairo/android/c/d;->a:Ljava/net/HttpURLConnection;

    const-string v1, "POST"

    invoke-virtual {v0, v1}, Ljava/net/HttpURLConnection;->setRequestMethod(Ljava/lang/String;)V

    sget-object v0, Lkairo/android/c/d;->a:Ljava/net/HttpURLConnection;

    const-string v1, "Content-Type"

    const-string v3, "application/x-www-form-urlencoded"

    invoke-virtual {v0, v1, v3}, Ljava/net/HttpURLConnection;->setRequestProperty(Ljava/lang/String;Ljava/lang/String;)V

    new-instance v1, Ljava/io/DataOutputStream;

    sget-object v0, Lkairo/android/c/d;->a:Ljava/net/HttpURLConnection;

    invoke-virtual {v0}, Ljava/net/HttpURLConnection;->getOutputStream()Ljava/io/OutputStream;

    move-result-object v0

    invoke-direct {v1, v0}, Ljava/io/DataOutputStream;-><init>(Ljava/io/OutputStream;)V
    :try_end_6
    .catch Ljava/io/IOException; {:try_start_6 .. :try_end_6} :catch_1
    .catch Ljava/lang/Exception; {:try_start_6 .. :try_end_6} :catch_3
    .catchall {:try_start_6 .. :try_end_6} :catchall_2

    :try_start_7
    invoke-static {v1, p1}, Lkairo/android/i/l;->a(Ljava/io/OutputStream;[B)V

    const v0, 0x499602d2

    invoke-static {v1, v0}, Lkairo/android/i/l;->a(Ljava/io/OutputStream;I)V

    invoke-virtual {v1}, Ljava/io/DataOutputStream;->flush()V

    invoke-virtual {v1}, Ljava/io/DataOutputStream;->close()V
    :try_end_7
    .catch Ljava/io/IOException; {:try_start_7 .. :try_end_7} :catch_2
    .catch Ljava/lang/Exception; {:try_start_7 .. :try_end_7} :catch_9
    .catchall {:try_start_7 .. :try_end_7} :catchall_3

    goto :goto_5

    :catch_2
    move-exception v0

    move-object v3, v1

    move-object v1, v2

    goto :goto_6

    :cond_d
    :try_start_8
    sget-object v0, Lkairo/android/c/d;->a:Ljava/net/HttpURLConnection;

    invoke-virtual {v0}, Ljava/net/HttpURLConnection;->connect()V

    sget-object v0, Lkairo/android/c/d;->a:Ljava/net/HttpURLConnection;

    invoke-virtual {v0}, Ljava/net/HttpURLConnection;->getContentLength()I

    move-result v1

    if-gez v1, :cond_e

    new-instance v0, Ljava/io/IOException;

    invoke-direct {v0}, Ljava/io/IOException;-><init>()V

    throw v0
    :try_end_8
    .catch Ljava/io/IOException; {:try_start_8 .. :try_end_8} :catch_1
    .catch Ljava/lang/Exception; {:try_start_8 .. :try_end_8} :catch_3
    .catchall {:try_start_8 .. :try_end_8} :catchall_2

    :catch_3
    move-exception v0

    move-object v3, v2

    move-object v1, v2

    :goto_b
    :try_start_9
    sput-object p0, Lkairo/android/c/d;->b:Ljava/lang/String;

    const/16 v4, -0x63

    sput v4, Lkairo/android/c/d;->c:I

    throw v0
    :try_end_9
    .catchall {:try_start_9 .. :try_end_9} :catchall_1

    :catchall_1
    move-exception v0

    goto :goto_7

    :cond_e
    :try_start_a
    sget-object v0, Lkairo/android/c/d;->a:Ljava/net/HttpURLConnection;

    invoke-virtual {v0}, Ljava/net/HttpURLConnection;->getResponseCode()I

    move-result v0

    const/16 v3, 0xc8

    if-eq v0, v3, :cond_f

    new-instance v0, Ljava/io/IOException;

    invoke-direct {v0}, Ljava/io/IOException;-><init>()V

    throw v0

    :catchall_2
    move-exception v0

    move-object v3, v2

    move-object v1, v2

    goto/16 :goto_7

    :cond_f
    new-instance v3, Ljava/io/DataInputStream;

    sget-object v0, Lkairo/android/c/d;->a:Ljava/net/HttpURLConnection;

    invoke-virtual {v0}, Ljava/net/HttpURLConnection;->getInputStream()Ljava/io/InputStream;

    move-result-object v0

    invoke-direct {v3, v0}, Ljava/io/DataInputStream;-><init>(Ljava/io/InputStream;)V
    :try_end_a
    .catch Ljava/io/IOException; {:try_start_a .. :try_end_a} :catch_1
    .catch Ljava/lang/Exception; {:try_start_a .. :try_end_a} :catch_3
    .catchall {:try_start_a .. :try_end_a} :catchall_2

    if-eqz p2, :cond_13

    const/4 v0, 0x2

    if-gt v0, v1, :cond_13

    :try_start_b
    invoke-static {v3}, Lkairo/android/i/l;->c(Ljava/io/InputStream;)B

    move-result v5

    invoke-static {v3}, Lkairo/android/i/l;->c(Ljava/io/InputStream;)B

    move-result v6

    const/4 v0, 0x2

    const/4 v7, 0x3

    if-gt v7, v1, :cond_10

    invoke-static {v3}, Lkairo/android/i/l;->c(Ljava/io/InputStream;)B

    const/4 v0, 0x3

    :cond_10
    const/16 v7, 0x4e

    if-ne v5, v7, :cond_14

    const/16 v5, 0x47

    if-ne v6, v5, :cond_14

    sub-int v0, v1, v0

    invoke-static {v3, v0}, Lkairo/android/i/l;->a(Ljava/io/InputStream;I)[B

    move-result-object v0

    new-instance v1, Ljava/lang/String;

    const-string v4, "Shift_JIS"

    invoke-direct {v1, v0, v4}, Ljava/lang/String;-><init>([BLjava/lang/String;)V

    const-string v0, "\n"

    invoke-static {v1, v0}, Lkairo/android/i/m;->b(Ljava/lang/String;Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v0

    array-length v1, v0

    if-lez v1, :cond_11

    const/4 v1, 0x0

    aget-object v1, v0, v1

    invoke-static {v1}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v1

    sput v1, Lkairo/android/c/d;->c:I

    :cond_11
    array-length v1, v0

    if-ge v8, v1, :cond_12

    const/4 v1, 0x1

    aget-object v0, v0, v1

    const/16 v1, 0x7c

    const/16 v4, 0xa

    invoke-virtual {v0, v1, v4}, Ljava/lang/String;->replace(CC)Ljava/lang/String;

    move-result-object v0

    sput-object v0, Lkairo/android/c/d;->d:Ljava/lang/String;

    :cond_12
    new-instance v0, Ljava/io/IOException;

    invoke-direct {v0}, Ljava/io/IOException;-><init>()V

    throw v0

    :catch_4
    move-exception v0

    move-object v1, v3

    move-object v3, v2

    goto/16 :goto_6

    :cond_13
    move v0, v4

    :cond_14
    new-instance v5, Lkairo/android/i/e;

    invoke-direct {v5}, Lkairo/android/i/e;-><init>()V

    :goto_c
    if-ge v0, v1, :cond_15

    sub-int v6, v1, v0

    invoke-static {v3, v6}, Lkairo/android/i/l;->a(Ljava/io/InputStream;I)[B

    move-result-object v6

    invoke-virtual {v5, v6}, Lkairo/android/i/e;->a(Ljava/lang/Object;)V

    array-length v6, v6

    add-int/2addr v0, v6

    goto :goto_c

    :cond_15
    iget v0, v5, Lkairo/android/i/e;->b:I

    if-nez v0, :cond_16

    const/4 v0, 0x1

    const/4 v1, 0x0

    filled-new-array {v0, v1}, [I

    move-result-object v0

    sget-object v1, Ljava/lang/Byte;->TYPE:Ljava/lang/Class;

    invoke-static {v1, v0}, Ljava/lang/reflect/Array;->newInstance(Ljava/lang/Class;[I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, [[B

    move-object v1, v0

    :goto_d
    iget v0, v5, Lkairo/android/i/e;->b:I

    if-ge v4, v0, :cond_17

    iget-object v0, v5, Lkairo/android/i/e;->c:[Ljava/lang/Object;

    aget-object v0, v0, v4

    check-cast v0, [B

    aput-object v0, v1, v4

    add-int/lit8 v0, v4, 0x1

    move v4, v0

    goto :goto_d

    :cond_16
    iget v0, v5, Lkairo/android/i/e;->b:I

    new-array v0, v0, [[B
    :try_end_b
    .catch Ljava/io/IOException; {:try_start_b .. :try_end_b} :catch_4
    .catch Ljava/lang/Exception; {:try_start_b .. :try_end_b} :catch_a
    .catchall {:try_start_b .. :try_end_b} :catchall_4

    move-object v1, v0

    goto :goto_d

    :cond_17
    :try_start_c
    invoke-virtual {v3}, Ljava/io/DataInputStream;->close()V
    :try_end_c
    .catch Ljava/lang/Exception; {:try_start_c .. :try_end_c} :catch_5

    :goto_e
    sget-object v0, Lkairo/android/c/d;->a:Ljava/net/HttpURLConnection;

    if-eqz v0, :cond_18

    :try_start_d
    sget-object v0, Lkairo/android/c/d;->a:Ljava/net/HttpURLConnection;

    invoke-virtual {v0}, Ljava/net/HttpURLConnection;->disconnect()V
    :try_end_d
    .catch Ljava/lang/Exception; {:try_start_d .. :try_end_d} :catch_b

    :cond_18
    :goto_f
    sput-object v2, Lkairo/android/c/d;->a:Ljava/net/HttpURLConnection;

    goto/16 :goto_0

    :catch_5
    move-exception v0

    goto :goto_e

    :catch_6
    move-exception v1

    goto/16 :goto_8

    :catch_7
    move-exception v1

    goto/16 :goto_9

    :catch_8
    move-exception v1

    goto/16 :goto_a

    :catchall_3
    move-exception v0

    move-object v3, v2

    goto/16 :goto_7

    :catchall_4
    move-exception v0

    move-object v1, v2

    goto/16 :goto_7

    :catch_9
    move-exception v0

    move-object v3, v2

    goto/16 :goto_b

    :catch_a
    move-exception v0

    move-object v1, v2

    goto/16 :goto_b

    :catch_b
    move-exception v0

    goto :goto_f

    :sswitch_data_0
    .sparse-switch
        0x4 -> :sswitch_0
        0x5 -> :sswitch_1
        0x101 -> :sswitch_1
    .end sparse-switch
.end method

.method public static c()Ljava/lang/String;
    .locals 1

    sget-object v0, Lkairo/android/c/d;->b:Ljava/lang/String;

    return-object v0
.end method
